package com.abel.demo.dao.slave;

import com.abel.demo.dao.BaseDao;
import com.abel.demo.model.AddressModel;
import com.abel.demo.model.AddressModelCriteria;
import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
* @author abel.lin
* @date_time 2018-07-12 14:26
* @description
*/
public interface AddressModelDao extends BaseDao<AddressModel, AddressModelCriteria>{

    int countByExample(AddressModelCriteria example);
    
    int deleteByExample(AddressModelCriteria example);
    
    int deleteByPrimaryKey(String id);
    
    int insert(AddressModel record);
    
    int insertSelective(AddressModel record);
    
    List<AddressModel> selectByExample(AddressModelCriteria example);

    AddressModel selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") AddressModel record, @Param("example") AddressModelCriteria example);

    int updateByExample(@Param("record") AddressModel record, @Param("example") AddressModelCriteria example);

    int updateByPrimaryKeySelective(AddressModel record);

    int updateByPrimaryKey(AddressModel record);
}